--- title: "出差" created: 2025-11-28 tags: - 算法 --- # 出差 ## 题目 [出差](https://www.lanqiao.cn/paper/3826/problem/1787/) ![[image-2601ce7f.png]] ## 思路分析 ![[image-f99ee28f.png]] ## 代码实现 ```cpp #include using namespace std; #define endl '\n' int main() { ios::sync_with_stdio(0),cin.tie(0),cout.tie(0); cout<<"A C"<